package cn.wolfcode.wolf2w.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/**
 * 自定义游记条件范围类
 */
@Getter
@Setter
@NoArgsConstructor
public class TravelConfition {
    //出行天数
    public static final Map<Integer, TravelConfition> DAY_MAP = new HashMap<>();
    static {
        DAY_MAP.put(1, new TravelConfition(0, 3));
        DAY_MAP.put(2, new TravelConfition(4, 7));
        DAY_MAP.put(3, new TravelConfition(8, 14));
        DAY_MAP.put(4, new TravelConfition(15, Integer.MAX_VALUE));
    }
    //人均花费
    public static final Map<Integer,TravelConfition>PEREXPEND_MAP = new HashMap<>();
    static {
        PEREXPEND_MAP.put(1,new TravelConfition(1,999));
        PEREXPEND_MAP.put(2,new TravelConfition(1000,6000));
        PEREXPEND_MAP.put(3,new TravelConfition(6001,20000));
        PEREXPEND_MAP.put(4,new TravelConfition(20001,Integer.MAX_VALUE));
    }
    private int min;
    private int max;
    public TravelConfition(int min, int max) {
        this.min = min;
        this.max = max;
    }
}
